from ed3d import *
from math import pi
w = world()
ui = ui()
nm = w.getNodeManager()
am = ui.getActionManager()
N = 10
for i in range(N):
    node = ShapeNode()
    node.name = "new%d" % i
    node.shape = Shape.Cube
    aa = AxisAngle(Vec3(0,1,0), i * 2. * pi / N)
    R = Mat3().makeRot(aa)
    t = R * Vec3(2, 0, 0)
    moveNode(am, node, t)
    rotateNode(am, node, aa)
    nm.append(node)
